<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<table id="Categrories" class="table table-bordered">
    <colgroup>
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
    </colgroup>
    <thead>
        <tr>
            <th style="width: 8%;">STT</th>
            <th>Tên nhân viên</th>
			<th>Mã quà tặng</th>
			<th>Ca</th>
			<th>Khách hàng</th>
            <th>Ngày nhận</th>
            <th>Ngày sử dụng</th>
			<th>Quà tặng</th>
            <th>Nhà hàng</th>
            <th>Số hóa đơn</th>
			<th>Số khách</th>
			<th>Doanh thu</th>
        </tr>
    </thead>
    <tbody>
    <?php $i=1; if(!in_array($data, array(null, '', '0'))):?>
    <?php foreach($data AS $el=>$le):?>
        <tr>
            <td><?php echo @$per_page * @$pageg + $i;?></td>
            <th><?php echo $le->fullname;?></th>
			<td><?php echo $le->code_user?></td> 
			<td><?php echo $le->work_car;?></td>
			<td><?php echo $le->customer;?></td>
			<td><?php echo $le->time_get;?></td>
			<td><?php echo $le->time_use;?></td>
			<td><?php echo $le->gift;?></td>
			<td><?php echo $le->restaurant;?></td>
			<td><?php echo $le->bills;?></td>
			<td><?php echo $le->customers;?></td>
			<td><?php echo number_format($le->revenue);?></td>
        </tr>
    <?php $i++; endforeach;?>
    <?php endif?>
    </tbody>
</table>